package com.aizhixin.lab.company.entity;

import java.util.Date;

import com.aizhixin.lab.common.entity.AbstractEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Temporal;

import org.springframework.format.annotation.DateTimeFormat;

@SuppressWarnings("serial")
@Entity(name = "t_log")
@ToString
public class Log extends AbstractEntity {
   
    @Column(name = "OPERATION_TYPE")
    @Getter
    @Setter
    private String operationType;
    @Column(name = "OPERATION_TIME")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Temporal(javax.persistence.TemporalType.TIMESTAMP)
    @Getter
    @Setter
    private Date operationTime;
  
}
